#!/bin/bash
# 解压包（放到流水线中）
# tar zxvf /home/admin/app/package.tgz -C /home/admin/app/\n # sh /home/admin/app/deploy.sh restart\n #
# tar zxvf /home/admin/web-app/package.tgz -C /home/admin/web-app/
# sh /home/admin/web-app/deploy.sh

# 复制前端项目文件
echo "start copy web files..."
sudo cp -r /home/admin/web-app/dist/. /var/www/dist/
echo "end copy web files..."
echo "start nginx reload"
sudo nginx -s reload
echo "end nginx reload"